import router from "@/router/index";
import { ElMessage } from "element-plus";
// 用户角色

// 路由信息

router.beforeEach((to, from, next) => {
  if (to.path === "/mapLocation") {
    ElMessage.error("暂无权限");
    next("/404");
    return;
  }
  next();
});
